//
//  HTMenuUserModel.h
//  HT_aigongzuo
//
//  Created by 周昭 on 16/9/1.
//  Copyright © 2016年 HT_Technology. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^HTMenuModelOption)();
typedef void (^HTMenuModelOptionWith)(id item);
typedef id (^HTMenuModelOptionGetStr)();

@interface HTMenuUserModel : NSObject
/**
 *  标题
 */
@property (nonatomic, copy) NSString *title;
/**
 *  子标题
 */
@property (nonatomic, copy) NSString *subtitle;
/**
 *  图标
 */
@property (nonatomic, copy) NSString *icon;
/**
 图标资源是否来自网络
 */
@property (nonatomic, assign) BOOL isWebIcon;
/**
 点击要跳转的链接
 */
@property (nonatomic, copy) NSString *linkUrlStr;

@property (nonatomic, copy) HTMenuModelOption option;
@property (nonatomic, copy) HTMenuModelOptionWith optionWithItem;
@property (nonatomic, copy) HTMenuModelOptionGetStr optionReturnStr;

+ (instancetype)menuWithIcon:(NSString *)icon title:(NSString *)title isWebIcon:(BOOL)isWebIcon linkUrlStr:(NSString *)linkUrlStr;

+ (instancetype)menuWithIcon:(NSString *)icon title:(NSString *)title;

+ (instancetype)menuWithTitle:(NSString *)title;

+ (instancetype)menu;
@end
